import service from "@/service";

//查询【系统管理列表】
export function getBusinessManageList(data) {
  let { page, pageSize } = data;
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-system/getListData?page=${page}&pageSize=${pageSize}`,
    method: "POST",
    data,
  });
}

//【删除系统管理】
export function getBusinessDelete(id) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-system/deleteData?id=${id}`,
    method: "POST",
  });
}

//【系统管理新增】
export function getBusinessAdd(data) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-system/saveOrUpdateData`,
    method: "POST",
    data,
  });
}

//查询【系统管理详情】
export function getBusinessDetails(id) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-system/getDetail?id=${id}`,
    method: "POST",
  });
}

//查询【菜单管理列表】
export function getMenuManageList(data) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-permission-all/getListData`,
    method: "POST",
    data,
  });
}

//【菜单管理新增】
export function getMenuAdd(data) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-permission-all/saveOrUpdateData`,
    method: "POST",
    data,
  });
}

//查询【菜单管理详情】
export function getMenuDetails(id) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-permission-all/getDetail?id=${id}`,
    method: "POST",
  });
}

//【删除菜单】
export function getMenuDelete(id) {
  return service({
    baseUrl: "gateWaybaseUrl",
    url: `/user/sys-permission-all/deleteData?id=${id}`,
    method: "POST",
  });
}
